function GetPathName() {
    var pathname = window.location.pathname;
    if (pathname.indexOf("/", 2) > 0) return pathname.substring(0, pathname.indexOf("/", 2));
    else
        return pathname.substring(0, pathname.indexOf("/", 1)) + "";
}

function SetLocalStorage(key,value){    
    localStorage.setItem(key,value);
}
function GetLocalStorageData(key){
  return localStorage.getItem(key);
}